fn main() {
    println!("-------------------------------");
    another_function();
    println!("-------------------------------");
    function_with_parameter(1);
    println!("-------------------------------");
    function_with_parameters(1, true);
    println!("-------------------------------");
    test1_expression();
    println!("-------------------------------");
    let result = function_with_result();
    println!("The value of result is: {result}");
    println!("-------------------------------");
    let result = function_with_parameter_result(1);
    println!("The value of result is: {result}");
    println!("-------------------------------");
}
fn another_function() {
    println!("Another function!");
}
fn function_with_parameter(x: i32) {
    println!("The value of x is: {x}");
}
fn function_with_parameters(x: i32, y: bool) {
    println!("The value of x is: {x}");
    println!("The value of y is: {y}");
}
fn test1_expression() {
    //let x = (let y = 6);//err
    let y = {
        let x = 3;
        x + 1
    };

    println!("The value of y is: {y}");
}
fn function_with_result() -> i32 {
    5
}
fn function_with_parameter_result(x: i32) -> i32 {
    x + 1
}
